package com.kgc.basic.remote;

import com.kgc.basic.pojo.BOM;
import com.kgc.basic.pojo.Good;
import com.kgc.basic.util.ResponseMsg;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface BOMRemote {
    @RequestMapping("getBOMPage")
    @ResponseBody
    ResponseMsg getBOMPage(@RequestBody Map<String, Object> map);
    @RequestMapping("addBOM")
    @ResponseBody
    ResponseMsg addBOM(@RequestBody BOM bom);
    @RequestMapping("updateBOM")
    @ResponseBody
    ResponseMsg updateBOM(@RequestBody BOM bom);
    @RequestMapping("delBOM")
    @ResponseBody
    ResponseMsg delBOM(@RequestParam("id") String id);
    @RequestMapping("getBOMById")
    @ResponseBody
    public ResponseMsg getBOMById(@RequestParam("id") String id);
    @RequestMapping("getAllBOM")
    @ResponseBody
    public ResponseMsg getAllBOM();

}
